import json

# num = 3.14
# name = 'yuan'
# l = [1, 2, 3]
# t = (4, 5, 6)
# d = {'name':'yuan','age':18,"is_married":False,"gf": None}
#
# print(repr(json.dumps(num)))
# print(repr(json.dumps(name)))
# print(repr(json.dumps(l)))
# print(repr(json.dumps(t)))
# print(repr(json.dumps(d)))

# d = {'name':'yuan','age':18,"is_married":False,"gf": None}
# json_d = json.dumps(d)
# print(json_d, type(json_d))
# data = json.loads(json_d)
# print(data, type(data))
#
# name = data.get('name')
# print(name, type(name))

s = '{"name": "yuan", "age": 18, "is_married": False}'
data = json.loads(s)
print(data, type(data))